package com.ruoyi.tester.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 任务信息对象 tester_task
 * 
 * @author SJ
 * @date 2022-04-24
 */
public class TesterTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 任务id */
    @Excel(name = "任务id")
    private Long taskId;

    /** 任务描述 */
    @Excel(name = "任务描述")
    private String desc;

    /** 主机 */
    @Excel(name = "主机")
    private String host;

    /** 端口 */
    @Excel(name = "端口")
    private Integer port;

    /** 登录配置id */
    @Excel(name = "登录配置id")
    private Long loginConfigId;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }
    public void setDesc(String desc) 
    {
        this.desc = desc;
    }

    public String getDesc() 
    {
        return desc;
    }
    public void setHost(String host) 
    {
        this.host = host;
    }

    public String getHost() 
    {
        return host;
    }
    public void setPort(Integer port) 
    {
        this.port = port;
    }

    public Integer getPort() 
    {
        return port;
    }
    public void setLoginConfigId(Long loginConfigId) 
    {
        this.loginConfigId = loginConfigId;
    }

    public Long getLoginConfigId() 
    {
        return loginConfigId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("taskId", getTaskId())
            .append("desc", getDesc())
            .append("host", getHost())
            .append("port", getPort())
            .append("loginConfigId", getLoginConfigId())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
